﻿using System;
using System.Collections.Generic;
using UniversityManagementSystem.Manager;

namespace UniversityManagementSystem.DAL
{
    [Serializable]
    public class Department
    {
        DepartmentManager manager = new DepartmentManager();
        public string DepartmentCode { get; set; }
        public string DepartmentName { get; set; }

        public string SaveNewDepartment()
        {
            return manager.SaveNewDepartment(this);
        }

        public List<Department> GetAllDepartments()
        {
            return manager.GetAllDepartment();
        }

        public List<string> GetAllBuildings()
        {
            return manager.GetAllBuildings();
        }

        public List<string> GetAllRooms(string buildingName)
        {
            return manager.GetAllRooms(buildingName);
        }
    }
}